package com.sjksy.demo.msmapper.travel_contract;

import com.sjksy.demo.domain.TravelContract;
import com.sjksy.demo.domain.TravelRoute;
import com.sjksy.demo.dto.guide.GuideInfoDto;
import com.sjksy.demo.vo.travel_contract.TravelContractInsertVo;
import com.sjksy.demo.vo.travel_contract.TravelContractShowVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface TravelContractMsMapper {

//    @Mapping(target = "serialVersionUID",source = "travelRoute.serialVersionUID")
//    静态变量怎么映射？这个库依赖还可以深入研究一下
    TravelContractShowVo dtoToTravelContractShowVo(TravelRoute travelRoute, GuideInfoDto guideInfoDto,TravelContract travelContract);

    TravelContract insertVoToTravelContract(TravelContractInsertVo travelContractInsertVo);
}
